#include "command.h"

int main(){
    Tv* tv = new Tv();
    Command* on = new OnCommand(tv);
    Invoke invoker;
    invoker.setCommand(on);
    invoker.excute();

    Command* off = new OffCommand(tv);
    invoker.setCommand(off);
    invoker.excute();



    delete tv;
    delete on;
    delete off;

    return 0;
}